realtek: pcs: use per-variant SerDes count
authorJonas Jelonek <[email protected]>
Sat, 13 Dec 2025 09:10:55 +0000 (09:10 +0000)
committerRobert Marko <[email protected]>
Tue, 16 Dec 2025 12:38:13 +0000 (13:38 +0100)
commitb9e5803d046cbc92bbd758debcc13b055c0def26
tree75874bc36b42a1a14951144559538d5aa492fdce
parentd8b1a54c78f39ff7314d0237e2a463b3cf2b4b8c
realtek: pcs: use per-variant SerDes count

Use a separate configuration field for the number of SerDes for each
variant of the Realtek Otto family. Add this field to the config
structure, assign it and use it during driver probe. This narrows
possible error cases and is needed for upcoming extensions.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 6cf33aacfe9d01903f1662795a28c5a7fc6e2fb7)
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c